#include <iostream>
using namespace std;
#include "circle3.h"

const double Circle::pi = 3.1415926;
Circle::Circle(int xValue, int yValue, double radiusValue) : Point(xValue, yValue)
{
	setRadius(radiusValue);
	//cout << "Circle constrcutor:";
	//print();
}
Circle::~Circle()
{
	//cout << "Circle destructor:";
	//print();
}
void Circle::setRadius(double value)
{
	radius = (value < 0.0) ? 0.0 : value; 
}
double Circle::getRadius() const
{
	return radius;
}
double Circle::getDiameter() const
{
	return (getRadius() * 2);
}
double Circle::getCircumference() const
{
	return (pi * getDiameter());
}
double Circle::getArea() const
{
	return (pi * getRadius() * getRadius());
}
void Circle::print() const
{
	cout << "Center = ";
	Point::print();
	cout << "Radius = " << getRadius() << "\n";
}
